package com.maslyk.invitation.service.email;

public class MIMEServiceFactory 
{
	public static IEmailContentProcess getMIMEService(String mimeType)
	{
		if(mimeType.contains("text/plain"))
			return new MIMEPlainTextService();
		if(mimeType.contains("text/html"))
			return new MIMETextHTMLService();
		
		if(mimeType.contains("multipart"))
			return new MIMEMultipartMixedService();
		
		return new MIMENoAction();
	}
	
}
